home *** CD-ROM | disk | FTP | other *** search
/ Disc Station 20 / Disc Station Vol 20.ISO / Drivers / Iodata / Pg3dvx98 / pvx98210.exe / DISK.EXE / WINNT35 / OEMSETUP.INF < prev    next >
INI File  |  1997-01-08  |  18KB  |  584 lines

  1. ;----------------
  2. ;  VIRGE/VX !!!!
  3. ;-----------------------------------------------------------------------
  4. ; OPTION TYPE
  5. ; -----------
  6. ; This identifies the Option type we are dealing with.  The different
  7. ; possible types are:
  8. ;
  9. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  10. ;-----------------------------------------------------------------------
  11.  
  12. [Identification]
  13.     OptionType = VIDEO
  14.  
  15. ;-----------------------------------------------------------------------
  16. ; LANGUAGES SUPPORTED
  17. ; -------------------
  18. ;
  19. ; The languages supported by the OEM INF, For every language supported
  20. ; we need to have a separate text section for every displayable text
  21. ; section.
  22. ;
  23. ;-----------------------------------------------------------------------
  24.  
  25. [LanguagesSupported]
  26.     ENG
  27.  
  28. ;-----------------------------------------------------------------------
  29. ; OPTION LIST
  30. ; -----------
  31. ; This section lists the OEM Option key names.  These keys are locale
  32. ; independent and used to represent the option in a locale independent
  33. ; manner.
  34. ;
  35. ;-----------------------------------------------------------------------
  36.  
  37. ;
  38. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  39. ;
  40. ; If you don't want to create a VRefresh or Interlaced value under the service
  41. ; parameters then use the value ""
  42. ;
  43.  
  44. [Options]
  45.     "I-O DATA GA-PG3DVXx/98PCI"        = gapg3dvx,    8, 640,  480   , 60 , 0
  46.  
  47. ;
  48. ; This maps detected options into the options we support
  49. ;
  50. ; Format: DetectedOption = MappedOption
  51. ;
  52.  
  53. [MapOfOptions]
  54.     "VGA"                       = "VGA"
  55.     "COMPAQ AVGA"               = "VGA"
  56.     "COMPAQ AGB"                = "VGA"
  57.     "8514 MONITOR UNKNOWN"      = "VGA"
  58.     "8514 VGA MONITOR"          = "VGA"
  59.     "8514 8503 MONO"            = "VGA"
  60.     "8514 8514 GAD"             = "VGA"
  61.     "GENOA VGA"                 = "VGA"
  62.     "VIDEO7 VGA DRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  63.     "VIDEO7 VGA VRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  64.     "TRIDENT VGA"               = "VGA"
  65.     "TRIDENT VGA 9100"          = "VGA"
  66.     "PARADISE VGA"              = "VGA"
  67.     "PARADISE VGA PROM"         = "VGA"
  68.     "PARADISE VGA CHIP 1F"      = "VGA"
  69.     "ATI VGA"                   = "VGA"
  70.     "ATI VGA WONDDER3"          = "VGA"
  71.     "TSENGLAB VGA ET3000"       = "VGA"
  72.     "TSENGLAB VGA ET4000"       = "TSENGLAB VGA ET4000 640x480x4x60"
  73.     "CIRRUS VGA"                = "VGA"
  74.     "CIRRUS VGA 610-620 REVC"   = "VGA"
  75.     "XGA"                       = "XGA 640x480x8"
  76.     "DELL DGX"                  = "DELL DGX 640x480x8"
  77.     "S3 VGA"                    = "S3 VGA 640x480x8"
  78.     "PRODESIGNER II"            = "TSENGLAB VGA ET4000 640x480x4x60"
  79.  
  80.  
  81. ;
  82. ; Order of the information:
  83. ;
  84. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  85. ;
  86.  
  87. [MiniportDrivers]
  88.     gapg3dvx   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 11,  {gapg3dvx}, 0 , %SystemRoot%\System32\IoLogMsg.dll , 7
  89.  
  90.  
  91. ;-----------------------------------------------------------------------
  92. ; OPTION TEXT SECTION
  93. ; -------------------
  94. ; These are text strings used to identify the option to the user.  There
  95. ; are separate sections for each language supported.  The format of the
  96. ; section name is "OptionsText" concatenated with the Language represented
  97. ; by the section.
  98. ;
  99. ;-----------------------------------------------------------------------
  100.  
  101. [OptionsTextENG]
  102.     "I-O DATA GA-PG3DVXx/98PCI"    = "I-O DATA GA-PG3DVXx/98PCI"
  103.  
  104.  
  105.  
  106. ;---------------------------------------------------------------------------
  107. ; 1. Identify
  108. ;
  109. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  110. ;                as we are choosing currently.
  111. ;
  112. ; INPUT:         None
  113. ;
  114. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  115. ;                $($R1): Option Type (COMPUTER ...)
  116. ;                $($R2): Diskette description
  117. ;---------------------------------------------------------------------------
  118.  
  119. [Identify]
  120.     ;
  121.     ;
  122.     read-syms Identification
  123.  
  124.     set Status     = STATUS_SUCCESSFUL
  125.     set Identifier = $(OptionType)
  126.     set Media      = #("Source Media Descriptions", 1, 1)
  127.  
  128.     Return $(Status) $(Identifier) $(Media)
  129.  
  130.  
  131.  
  132. ;------------------------------------------------------------------------
  133. ; 2. ReturnOptions:
  134. ;
  135. ; DESCRIPTION:   To return the option list supported by this INF and the
  136. ;                localised text list representing the options.
  137. ;
  138. ;
  139. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  140. ;
  141. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  142. ;                                STATUS_NOLANGUAGE
  143. ;                                STATUS_FAILED
  144. ;
  145. ;                $($R1): Option List
  146. ;                $($R2): Option Text List
  147. ;------------------------------------------------------------------------
  148.  
  149. [ReturnOptions]
  150.     ;
  151.     ;
  152.     set Status        = STATUS_FAILED
  153.     set OptionList     = {}
  154.     set OptionTextList = {}
  155.  
  156.     ;
  157.     ; Check if the language requested is supported
  158.     ;
  159.     set LanguageList = ^(LanguagesSupported, 1)
  160.     Ifcontains(i) $($0) in $(LanguageList)
  161.     goto returnoptions
  162.     else
  163.     set Status = STATUS_NOLANGUAGE
  164.     goto finish_ReturnOptions
  165.     endif
  166.  
  167.     ;
  168.     ; form a list of all the options and another of the text representing
  169.     ;
  170.  
  171. returnoptions = +
  172.     set OptionList     = ^(Options, 0)
  173.     set OptionTextList = ^(OptionsText$($0), 1)
  174.     set Status         = STATUS_SUCCESSFUL
  175.  
  176. finish_ReturnOptions = +
  177.     Return $(Status) $(OptionList) $(OptionTextList)
  178.  
  179.  
  180.  
  181. ;---------------------------------------------------------------------------
  182. ; MapToSupportedOption
  183. ;
  184. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  185. ;                option which represents it.
  186. ;
  187. ; INPUT:         $($0): Option
  188. ;
  189. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  190. ;                $($R1): Mapped Option
  191. ;
  192. ;---------------------------------------------------------------------------
  193.  
  194. [MapToSupportedOption]
  195.     ;
  196.     set Status = STATUS_FAILED
  197.     set MappedOption = $($0)
  198.  
  199.     ;
  200.     ; If the option is one we can support using one of our standard options
  201.     ; then map it to the standard option else map it to the default option
  202.     ; which is VGA.
  203.     ;
  204.  
  205.     set OptionList = ^(MapOfOptions, 0)
  206.     ifcontains $($0) in $(OptionList)
  207.     set MappedOption = #(MapOfOptions, $($0), 1)
  208.     else
  209.     set MappedOption = "VGA"
  210.     endif
  211.  
  212.     set Status = STATUS_SUCCESSFUL
  213.     Return $(Status) $(MappedOption)
  214.  
  215.  
  216.  
  217. [ServicesEntry]
  218.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  219.  
  220.  
  221. ;
  222. ; InstallOption:
  223. ;
  224. ; FUNCTION:  To copy files representing Options
  225. ;            To configure the installed option
  226. ;            To update the registry for the installed option
  227. ;
  228. ; INPUT:     $($0):  Language to use
  229. ;            $($1):  OptionID to install
  230. ;            $($2):  SourceDirectory
  231. ;            $($3):  AddCopy  (YES | NO)
  232. ;            $($4):  DoCopy   (YES | NO)
  233. ;            $($5):  DoConfig (YES | NO)
  234. ;
  235. ; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
  236. ;                            STATUS_NOLANGUAGE |
  237. ;                            STATUS_USERCANCEL |
  238. ;                            STATUS_FAILED
  239. ;
  240.  
  241. [InstallOption]
  242.  
  243.     ;
  244.     ; Set default values for
  245.     ;
  246.     set Status       = STATUS_FAILED
  247.     set DrivesToFree = {}
  248.  
  249.     ;
  250.     ; extract parameters
  251.     ;
  252.     set Option   = $($1)
  253.     set SrcDir   = $($2)
  254.     set AddCopy  = $($3)
  255.     set DoCopy   = $($4)
  256.     set DoConfig = $($5)
  257.  
  258.     ;
  259.     ; Check if the language requested is supported
  260.     ;
  261.     set LanguageList = ^(LanguagesSupported, 1)
  262.     Ifcontains(i) $($0) in $(LanguageList)
  263.     else
  264.     set Status = STATUS_NOLANGUAGE
  265.     goto finish_InstallOption
  266.     endif
  267.     read-syms Strings$($0)
  268.  
  269.     ;
  270.     ; check to see if Option is supported.
  271.     ;
  272.  
  273.     set OptionList = ^(Options, 0)
  274.     ifcontains $(Option) in $(OptionList)
  275.     else
  276.     goto finish_InstallOption
  277.     endif
  278.     set OptionList = ""
  279.  
  280.